package degsinModel;

public class RealData implements Data {

	private String result;

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public RealData(String queryStr) {
		System.out.println("参数："+ queryStr +",进行查询，稍等返回结果....");
		try {
			//模拟沉睡5秒
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		System.out.println("查询成功...");
		result = "name:weixin , ID:1";
	}

	
	@Override
	public String getRequest() {
		return result;
	}

}
